"""
    Write out the configuration directly as key-value pairs.
"""
import os
import sys

from messageboard import app

# Compatible SQLite URI for Linux and windows
prefix = 'sqlite:///' if sys.platform.startswith('win') else 'sqlite:////'
dev_db = prefix + os.path.join(os.path.dirname(app.root_path), 'data.db')

SECRET_KEY = os.getenv('SECRET_KEY', 'secret string')
SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URI', dev_db)
SQLALCHEMY_RECORD_QUERIES = True
DEBUG_TB_INTERCEPT_REDIRECTS = False
